package com.frcdi.qms.system.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.frcdi.qms.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 授权信息对象 sys_license
 *
 * @author semarl
 * @date 2022-03-30
 */
public class SysLicense extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 公司名称 */
    @Excel(name = "公司名称")
    private String company;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contacts;

    /** 授权码 */
    @Excel(name = "授权码")
    private String code;

    /** 密码 */
    @Excel(name = "密码")
    private String pass;

    /** 生成日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生成日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 有效期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date validDate;

    /** 人数 */
    @Excel(name = "人数")
    private Long num;

    /** ip */
    @Excel(name = "ip")
    private String ip;

    /** mac */
    @Excel(name = "mac")
    private String mac;

    /** cpuSerial */
    @Excel(name = "cpuSerial")
    private String cpuSerial;

    /** mainBoardSerial */
    @Excel(name = "mainBoardSerial")
    private String mainBoardSerial;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCompany(String company)
    {
        this.company = company;
    }

    public String getCompany()
    {
        return company;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setContacts(String contacts)
    {
        this.contacts = contacts;
    }

    public String getContacts()
    {
        return contacts;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setPass(String pass)
    {
        this.pass = pass;
    }

    public String getPass()
    {
        return pass;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setValidDate(Date validDate)
    {
        this.validDate = validDate;
    }

    public Date getValidDate()
    {
        return validDate;
    }
    public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum()
    {
        return num;
    }
    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getIp()
    {
        return ip;
    }
    public void setMac(String mac)
    {
        this.mac = mac;
    }

    public String getMac()
    {
        return mac;
    }
    public void setCpuSerial(String cpuSerial)
    {
        this.cpuSerial = cpuSerial;
    }

    public String getCpuSerial()
    {
        return cpuSerial;
    }
    public void setMainBoardSerial(String mainBoardSerial)
    {
        this.mainBoardSerial = mainBoardSerial;
    }

    public String getMainBoardSerial()
    {
        return mainBoardSerial;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("company", getCompany())
            .append("phone", getPhone())
            .append("contacts", getContacts())
            .append("code", getCode())
            .append("pass", getPass())
            .append("createDate", getCreateDate())
            .append("validDate", getValidDate())
            .append("num", getNum())
            .append("ip", getIp())
            .append("mac", getMac())
            .append("cpuSerial", getCpuSerial())
            .append("mainBoardSerial", getMainBoardSerial())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
